home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 6: Level 6
/
17 Bit - Level 6 (1998)(Epic Marketing)[!].iso
/
quartz
/
q0039.dms
/
q0039.adf
/
include
/
assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-04
|
317b
|
14 lines
#ifndef ASSERT_H
#define ASSERT_H
#ifdef NDEBUG
#define assert(cond)
#else
/* NorthC does not define __FILE__ and __LINE__ */
static char __AssertFmt[] = "assert failed in '%s' at line %d.\n";
#define assert(cond) if(!(cond)) \
{ fprintf(stderr, __AssertFmt, __FILE__, __LINE__); abort(); }
#endif
#endif ASSERT_H